Xbasic

SPACE Function

Syntax

Output_String as C = SPACE(N number_of_spaces)

Arguments

number_of_spaces

The number of space characters to place into the output string. Numeric

Description

Returns a character string containing a specified number of spaces.

Discussion

Returns a character string containing the specified Number_Of_Spaces. SPACE() creates a string with an arbitrary number of spaces. You typically use SPACE() when constructing character strings by concatenating pieces together, because it enables you to insert blank spaces between the pieces.

Example

trim("Paul     ") + SPACE(1) + "Mahoney" -> Paul Mahoney

See Also